/*
 * @Descripttion: 
 * @Author: liuYaoYu
 * @Date: 2021-11-14 23:28:49
 * @LastEditors: liuYaoYu
 * @LastEditTime: 2021-11-14 23:30:59
 */
interface IType<T, E> {
    name: T,
    age: E
}
class Person<T, E> implements IType<T, E> {
    private name: T
    private age: E
    constructor(name: T, age: E) {
        this.name = name
        this.age = age
    }
}

var p = new Person<string, number>('孙悟空', 18)